//
//  NHBaseViewController.h
//  LZNeiHan
//
//  Created by 梁梓烽 on 16/9/28.
//  Copyright © 2016年 liangzifeng. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef  void(^NHBaseViewControllerHandle)();

@interface NHBaseViewController : UIViewController


-(void)pop;

-(void)popToRootVc;

-(void)popToVc:(UIViewController *)vc;

-(void)dismiss;

-(void)dismissWithCompletion:(void(^)())completion;

-(void)presentVC:(UIViewController *)vc;

-(void)presetVC:(UIViewController *)vc completion:(void(^)())completion;

-(void)push:(UIViewController *)vc;

-(void)removeChildVC:(UIViewController *)vc;

-(void)addChildVC:(UIViewController *)vc;

/** 展示加载动画*/
-(void)showLoadingAnimation;

/** 隐藏加载动画*/
-(void)hideLoadingAnimation;

/** 请求数据，交给子类去实现*/
-(void)loadData;


@property(nonatomic,assign)BOOL isNetWorkReachable;


@end
